package core;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

public class Block {
	public Image tex;
	public float width;
	public float height;
	public boolean passable;
	public float scale;
	public float rotation;
	public float x;
	public float y;
	public float bottom;
	public float right;
	
	public Block(String tex, boolean passable,float x,float y) throws SlickException{
		this.tex = new Image(tex);
		width = this.tex.getWidth();
		height = this.tex.getHeight();
		this.passable = passable;
		this.x = x;
		this.y = y;
		bottom = y+height;
		right = x+width;
	}
	
	public void draw(){
		tex.draw(x,y);
	}
}
